package com.ostrich.module_player

import androidx.lifecycle.LiveData
import com.ostrich.library_base.BaseViewModel
import com.ostrich.library_net.BaseResponse
import com.ostrich.module_player.entity.PlayerEntity


/**
 * @Author : yaotianxue
 * @Time : On 2023/11/3 14:13
 * @Description : PlayerViewModel
 */
class PlayerViewModel:BaseViewModel() {
    private val playerRepository:PlayerRepository by lazy{
        PlayerRepository()
    }

    fun relate(id:Int): LiveData<BaseResponse<MutableList<PlayerEntity>>> {
        return playerRepository.relate(id)
    }

    fun comment(videoId:Int): LiveData<BaseResponse<MutableList<PlayerEntity>>> {
        return playerRepository.comment(videoId)
    }
}